<template>
  <div id="app">
    <div id="nav">
      <!-- <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> -->
      <button @click="changePage('/')">Home</button> |
      <button @click="changePage('/about')">About</button>
    </div>
    <router-view/>
  </div>
</template>
<script>
export default {
  methods: {
    changePage (path) {
      console.log(this.$router)
      this.$router.push(path)
    }
  }
}
</script>

<style lang="stylus">
#app
  font-family Avenir, Helvetica, Arial, sans-serif
  -webkit-font-smoothing antialiased
  -moz-osx-font-smoothing grayscale
  text-align center
  color #2c3e50
  margin-top 60px
</style>
